<template>
	<view>
		<u-button @click="onApp">打开app</u-button>
	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				callLib: null
			};
		},
		onLoad() {
			const options = {
			  scheme: {
				  protocol: '__UNI__3509800'
			  },
			  intent: {
				  package: '__UNI__3509800',
				  scheme: '__UNI__3509800'
			  },
			  appstore: '',
			  fallback: '',
			  timeout: '2000'
			};
			this.callLib = new CallApp(options);
			console.log(this.callLib)
		},
		methods: {
			onApp() {
				uni.showLoading({
					title: '正在打开App...'
				});
				this.callLib.open({
					path: ''
				});
			}
		}
	}
</script>
<style lang="scss" scoped>
	
</style>